Optimal. Leaf size=70 \[ \frac {x}{5}+\frac {3 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}{20 d}-\frac {3 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}{20 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3868, 2738,
212} \begin {gather*} \frac {3 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}{20 d}-\frac {3 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )+2 \cos \left (\frac {1}{2} (c+d x)\right )\right )}{20 d}+\frac {x}{5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2738
Rule 3868
Rubi steps
\begin {align*} \int \frac {1}{5+3 \sec (c+d x)} \, dx &=\frac {x}{5}-\frac {1}{5} \int \frac {1}{1+\frac {5}{3} \cos (c+d x)} \, dx\\ &=\frac {x}{5}-\frac {2 \text {Subst}\left (\int \frac {1}{\frac {8}{3}-\frac {2 x^2}{3}} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{5 d}\\ &=\frac {x}{5}+\frac {3 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )}{20 d}-\frac {3 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}{20 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 69, normalized size = 0.99 \begin {gather*} \frac {4 (c+d x)+3 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-3 \log \left (2 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}{20 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 46, normalized size = 0.66
method | result | size |
norman | \(\frac {x}{5}+\frac {3 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2\right )}{20 d}-\frac {3 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2\right )}{20 d}\) | \(39\) |
risch | \(\frac {x}{5}+\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {3}{5}-\frac {4 i}{5}\right )}{20 d}-\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {3}{5}+\frac {4 i}{5}\right )}{20 d}\) | \(43\) |
derivativedivides | \(\frac {\frac {3 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2\right )}{20}-\frac {3 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2\right )}{20}+\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}}{d}\) | \(46\) |
default | \(\frac {\frac {3 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-2\right )}{20}-\frac {3 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2\right )}{20}+\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}}{d}\) | \(46\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 70, normalized size = 1.00 \begin {gather*} \frac {8 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right ) - 3 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 2\right ) + 3 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 2\right )}{20 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.96, size = 52, normalized size = 0.74 \begin {gather*} \frac {8 \, d x - 3 \, \log \left (\frac {3}{2} \, \cos \left (d x + c\right ) + 2 \, \sin \left (d x + c\right ) + \frac {5}{2}\right ) + 3 \, \log \left (\frac {3}{2} \, \cos \left (d x + c\right ) - 2 \, \sin \left (d x + c\right ) + \frac {5}{2}\right )}{40 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{3 \sec {\left (c + d x \right )} + 5}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 43, normalized size = 0.61 \begin {gather*} \frac {4 \, d x + 4 \, c - 3 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \right |}\right ) + 3 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \right |}\right )}{20 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.88, size = 21, normalized size = 0.30 \begin {gather*} \frac {x}{5}-\frac {3\,\mathrm {atanh}\left (\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2}\right )}{10\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________